package homework.four_one;

public class People {
    String _name;
    int _age;
    String _sex;
    People(){
        System.out.println("******创建了父类对象*****");
    }
    People(String n){
        System.out.println("创建了父类对象");
    }
    void eat()
    {
        System.out.println("开始吃饭了！！！");
    }
    void sleep()
    {
        System.out.println("我已经睡着了!!");
    }
    void work()
    {
        System.out.println("我开始工作啦！！");
    }
    public void SetName(String name)
    {
        _name=name;
    }
    public void SetAge(int age)
    {
        _age=age;
    }
    public void SetSex(String sex)
    {
        _sex=sex;
    }
}
